from random import *
a,b = 0,0

for i in range(1,10001):
      guess = randint(1,3)
      car = randint(1,3)
      if guess == car:
            a += 1
      else:
            b += 1
rate1 = a/10000
rate2 = b/10000
print("不换的概率是:{},换的概率是:{}".format(rate1,rate2))
